package com.shiliuzi.www.pojo.dto.user;

import com.shiliuzi.www.pojo.vo.user.UserLoginSendVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserLoginCheckDto {
    /**
     * 获取验证码后，将返回对象再次包装
     * 封装用户信息，以及redis中key
     */
    UserLoginSendVo userLoginSendVo;
    /**
     * 用户输入验证码
     */
    @NotNull(message = "验证码不能为空！")
//    @Length(min = 100000, max = 999999, message = "请输入正确的验证码！")
    Integer code;
}
